package com.fr.view;

import com.fr.cell.core.layout.LayoutFactory;
import com.fr.report.WorkBook;
import java.awt.Container;
import javax.swing.JApplet;

public class PreviewApplet extends JApplet
{
  private PreviewPane previewPane;

  public void init()
  {
    Container localContainer = getContentPane();
    localContainer.setLayout(LayoutFactory.createBorderLayout());
    this.previewPane = new PreviewPane();
    localContainer.add(this.previewPane, "Center");
  }

  public void print(WorkBook paramWorkBook)
  {
    this.previewPane.print(paramWorkBook);
  }
}